<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
	<script type="text/javascript">
		function Person(name,age){
			this.name = name;
			this.age = age;
		}

		Person.prototype.showName = function(){
			console.log(this.name);
		};

		console.dir(WeakMap);
		console.dir(Person);

		const p = new Person('kaivon',18);
		p.showName();

		class WhitePerson{
			constructor(name,age){
				this.name = name;
				this.age = age;
			}

			showName(){
				console.log(this.name);
			}
		}

		console.dir(WhitePerson);
		const p1 = new WhitePerson('kaivon',18);
		p1.showName();
	</script>
</body>
</html>